<template>
  <gzTree :data="data" />
</template>

<script setup lang="ts">
import gzTree from "../gzui/tree/src/tree";
import { ref } from "vue";

const data = ref([
  {
    label: "项目1",
    level: 1,
    open: false,
    children: [
      {
        label: "项目1-1",
        level: 2
      }
    ]
  },
  {
    label: "项目2",
    level: 1,
    children: [
      {
        label: "项目2-1",
        level: 2
      }
    ]
  },
  {
    label: "项目3",
    level: 1,
    open: false,
    children: [
      {
        label: "项目3-1",
        level: 2,
        open: false,
        children: [
          {
            label: "项目3-1-1",
            level: 3
          }
        ]
      }
    ]
  },
  {
    label: "项目4",
    level: 1,
    children: [
      {
        label: "项目4-1",
        level: 2
      }
    ]
  }
]);
</script>

<style></style>
